﻿@model Mestedur.ViewModels.ChapterViewModel

@{
    ViewBag.Title = "ViewQuestions";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Вопросы для главы "@Html.DisplayTextFor(x => x.ChapterName)"</h2>

@foreach (var question in Model.Questions)
{
    <div class="text" id="@question.Id"> <ul><li><dl><dt><a href="/Editor/EditQuestion/@question.Id">@Html.Raw(question.Text)</a> </dt></dl></li></ul></div>
}

<form action="../EditQuestion">
    <input type="submit" value="Добавить"/>
    <input type="hidden" value=@Model.Id name = "ChapterId"/>
</form>
    